package com.wanlian.service;


import com.wanlian.common.PageCondition;
import com.wanlian.entity.IntChange;
import com.wanlian.model.ResultModel;
import com.wanlian.vo.Page;

public interface UserScoreServices {

    ResultModel queryUserScoreByParam(PageCondition pageCondition,int uid);

    ResultModel queryUserScoreHistoryByParam(PageCondition pageCondition,int uid);

    /**
     * 查询用户昨日积分
     * @param userId
     * @return
     */
    ResultModel queryUserScoreYes(int userId);
    /**
     * 查询用户昨日积分明细
     * @param userId
     * @return
     */
    ResultModel queryUserScoreYesItem(Page page, int userId);

    /**
     * 查询积分流水
     * @return
     */
    ResultModel queryUserScoreWater(PageCondition pageCondition,int uid);

    /**
     *
     *  积分排行榜
     * @return
     */
    ResultModel queryUserScoreOrder(PageCondition pageCondition);

    /**
     *
     *  总积分排行榜
     * @return
     */
    ResultModel queryUserSumScoreOrder(PageCondition pageCondition);

    /**
     * 兑换int
     */
    ResultModel doUpdateInt(IntChange intChange, int userId);


}
